<?php /* Smarty version Smarty-3.1.10, created on 2013-08-06 03:17:05
         compiled from "G:\web\htdocs\gothpunks\m_admin\templates\libs\act\article_cat.htm" */ ?>
<?php /*%%SmartyHeaderCode:1782852006ab1e3f417-04583699%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '81989c836bfb829a5bfd8dd39c4f8dc66e34fbc9' => 
    array (
      0 => 'G:\\web\\htdocs\\gothpunks\\m_admin\\templates\\libs\\act\\article_cat.htm',
      1 => 1374640708,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1782852006ab1e3f417-04583699',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'cat_list' => 0,
    'list' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.10',
  'unifunc' => 'content_52006ab1ea9b87_21447848',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_52006ab1ea9b87_21447848')) {function content_52006ab1ea9b87_21447848($_smarty_tpl) {?>

<article class="module width_3_quarter" id="article_cat">
  <header>
    <h3 class="tabs_involved">文章分类</h3>
   
  </header>
  <div class="tab_container" >
    <div id="tab1" class="tab_content">
      <table class="tablesorter" cellspacing="0">
        <thead>
          <tr>
          	<th width="50px;">ID</th>
            <th width="150px;">名称</th>
            <th width="150px;">keywords</th>
            <th width="150px;">描述</th>
            <th width="150px;">title</th>
           
            <th width="60px;">状态</th>
            <th width="120px;">操作</th>
          </tr>
        </thead>
        <tbody>
     
          <tr class="cat_add">
           <td>新增</td> 
            <td><input type="text" name="cat_name"/></td>
            <td><input type="text" name="keywords"/></td>
            <td><input type="text" name="cat_desc"/></td>
            <td><input type="text" name="title"/></td>
           
            <td><small class="green">1-显示，0-隐藏</small></td>
            <td><input type="submit" class="alt_btn" value="新增" onclick="AD.articleCat('.cat_add')"></td>
          </tr>
          
          <?php  $_smarty_tpl->tpl_vars['list'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['list']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['cat_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['list']->key => $_smarty_tpl->tpl_vars['list']->value){
$_smarty_tpl->tpl_vars['list']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['list']->key;
?>
          <tr class="cat_add<?php echo $_smarty_tpl->tpl_vars['list']->value['cat_id'];?>
">
            <td><a href="articleList-<?php echo $_smarty_tpl->tpl_vars['list']->value['cat_id'];?>
"><?php echo $_smarty_tpl->tpl_vars['list']->value['cat_id'];?>
</a></td> 
            <td><input type="text" name="cat_name" value="<?php echo $_smarty_tpl->tpl_vars['list']->value['cat_name'];?>
"/></td>
            <td><input type="text" name="keywords" value="<?php echo $_smarty_tpl->tpl_vars['list']->value['keywords'];?>
"/></td>
            <td><input type="text" name="cat_desc" value="<?php echo $_smarty_tpl->tpl_vars['list']->value['cat_desc'];?>
"/></td>
            <td><input type="text" name="title" 	 value="<?php echo $_smarty_tpl->tpl_vars['list']->value['title'];?>
"/></td>
           
            <td><input type="text" name="is_show" 	 value="<?php echo $_smarty_tpl->tpl_vars['list']->value['is_show'];?>
"/></td>
            <td><a class="alt_btn" onclick="AD.articleCatDel(<?php echo $_smarty_tpl->tpl_vars['list']->value['cat_id'];?>
)">删除</a> / 
            <a class="alt_btn" onclick="AD.articleCatUpdate('.cat_add<?php echo $_smarty_tpl->tpl_vars['list']->value['cat_id'];?>
',<?php echo $_smarty_tpl->tpl_vars['list']->value['cat_id'];?>
)">保存</a>
            </td>
          </tr>
          <?php } ?>
      
         
       
         
        </tbody>
      </table>
    </div>
    <!-- end of #tab1 --> 
    
  </div>
  <!-- end of .tab_container --> 
  
</article>

<?php }} ?>